package com.koko.feign;

import com.koko.config.FeignClientConfig;
import com.koko.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "admin-service", url = "http://localhost:8086", configuration = FeignClientConfig.class)
public interface AdminFeignService {
    @GetMapping("/admin/name/{id}")
    Result<String> getAdminDetail(@PathVariable Long id);
}
